import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { 
      path: '/', 
      component: () => import('@/views/LayoutPage/MainIndex.vue'),
      redirect: '/HomePage',
      children: [
        { path: '/HomePage', component: () => import('@/views/LayoutPage/HomePage.vue') },
        { path: '/PPTTemplate', component: () => import('@/views/LayoutPage/PPTTemplate.vue') },
        { path: '/FuctionGlace', component: () => import('@/views/LayoutPage/FuctionGlace.vue') },
        { path: '/DownloadPage', component: () => import('@/views/LayoutPage/DownloadPage.vue') },
        { path: '/PricingPage', component: () => import('@/views/LayoutPage/PricingPage.vue') },
        { path: '/CorporateServices', component: () => import('@/views/LayoutPage/CorporateServices.vue') },
        { path: '/HelpSupport', component: () => import('@/views/LayoutPage/HelpSupport.vue') },
      ] 
    },
  ],
})

export default router